import request from '@/utils/request'

// 查询答题记录列表
export function listPaperAnswers(query) {
  return request({
    url: '/paperAnswers/paperAnswers/list',
    method: 'get',
    params: query
  })
}

// 查询答题记录详细
export function getPaperAnswers(answerId) {
  return request({
    url: '/paperAnswers/paperAnswers/' + answerId,
    method: 'get'
  })
}

// 新增答题记录
export function addPaperAnswers(data) {
  return request({
    url: '/paperAnswers/paperAnswers',
    method: 'post',
    data: data
  })
}

// 修改答题记录
export function updatePaperAnswers(data) {
  return request({
    url: '/paperAnswers/paperAnswers',
    method: 'put',
    data: data
  })
}

// 删除答题记录
export function delPaperAnswers(answerId) {
  return request({
    url: '/paperAnswers/paperAnswers/' + answerId,
    method: 'delete'
  })
}
